package ua.eug.airv1.ground;

import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

import ua.eug.airv1.ImageProvider;
import ua.eug.airv1.map.Tile;
import ua.eug.airv1.orders.WeaponOrder;
import ua.eug.airv1.weapon.ZWeapon;

public class Airfield extends GroundWeapon {
	private TextureRegion texture2;
	
	// Two possible directions  - NEE (false) and SEE(true)
	private Boolean direction;
	// Three possible sizes: 4hexs, 6hexs and 8hexs
	private int size = 0;

	public Airfield(int owner, Tile pos) {
		super(owner, pos);
		texture = ImageProvider.Airfield[0];
		texture2 = ImageProvider.Airfield[1];
		order = WeaponOrder.ZOrder;
	}

	
	// Placing 
	public void setStart(Tile tile) {
		place.setGroundWeapon(ZWeapon.Nobody);
		setPosition(tile.pos);
		place = tile;
	}
	
	public void setSize(int size) {
		this.size = size;
	}
	
	@Override
	public void fireToEnemy() { // do nothing	
	}
	
	@Override
    public void draw(Batch batch, float alpha){
		// multiple tile draw
		batch.draw(texture,getX(), getY());
    }

}
